import { ComponentInternalInstance, VNode } from "vue";

/*
 * @Author: chenhuanhuan 2925102113@qq.com
 * @Date: 2024-12-04 17:32:51
 * @LastEditors: chenhuanhuan 2925102113@qq.com
 * @LastEditTime: 2024-12-09 17:35:47
 * @FilePath: \liuyanggui\src\cuselement-ui\cus-message\types.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export interface MessageProps {
  message?: string;
  duration?: number;
  showClose?: boolean;
  type?: "success" | "warning" | "info" | "error" | "qustion" | "loading";
  onDestroy: () => void;
  offset?: number,
  id: string
}

// 排除onDestroy
export type MessagePropsType = Omit<MessageProps, "onDestroy" | 'id'>;


// 组件实例类型
export interface MessageContext {
  id: string;
  vnode: VNode;
  props: MessageProps,
  vm: ComponentInternalInstance //vue实例
}